                                                                                               actor DarkImp_2 : RGAMonster
{
  spawnid 5
  obituary "%o was burned by a dark imp."
  hitobituary "%o was slashed by a dark imp."
  health 50
  radius 20
  height 56
  mass 100
  speed 8
  painchance 200
  seesound "imp/sight"
  painsound "imp/pain"
  deathsound "imp/death"
  activesound "imp/active"
  MONSTER
  +FLOORCLIP
  +MISSILEMORE
  dropitem "HealthBonus" 196
  dropitem "HealthBonus" 196
  dropitem "HealthBonus" 196
  Species "Imp"
  states
  {
  Spawn:
    POSS A 0 
    POSS A 0 Thing_SetSpecial(0,226,613,0,random(7,14))
    POSS A 0 A_GiveInventory("XPAmount", random(7, 14))
    POSS P 0 ACS_ExecuteAlways(651,0,0,0,0)
    DIMP AB 10 A_Look
    goto Spawn+4
  See:
    DIMP AABBCCDD 3 A_Chase
    loop
  Melee:
  Missile:
    DIMP EF 8 A_FaceTarget
    DIMP G 6 A_CustomComboAttack("DarkImpBall2",32,5,"imp/melee")
    goto See
  Missile2:
    DIMP EF 8 A_FaceTarget
    DIMP G 0 A_CustomMissile("DarkImpBall2",30,0,5)
    DIMP G 0 A_CustomMissile("DarkImpBall2",30,0,-5)
    DIMP G 6 A_CustomMissile("DarkImpBall2",30,0,0)
    goto See
  Pain:
    DIMP H 2
    DIMP H 2 A_Pain
	TNT1 G 0 A_AlertMonsters
    goto See
  Death:
    DIMP I 8
	DIMP I 0 A_JumpIfHealthLower(random(-500,-110),"XDeath")
    DIMP J 8 A_Scream
    DIMP K 6
    DIMP L 6 A_NoBlocking
    DIMP L 0 ACS_ExecuteAlways(648,0,0,0,0)
    DIMP M -1 A_Jump(30,"Res")
    stop
  Res:
    DIMP MM 115
	DIMP M 0 A_Jump(192, "Res")
    DIMP M 5 A_PlaySound("imp/sight")
    DIMP M -1 A_SpawnItemEx("DoomImpRes",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
    stop
  XDeath:
    DIMP N 5
    DIMP O 5 A_XScream
    DIMP P 5
    DIMP Q 5 A_NoBlocking
    DIMP Q 0 ACS_ExecuteAlways(648,0,0,0,0)
    DIMP RST 5
    DIMP U -1
    stop
  Raise:
    DIMP MLKJI 8
    goto See
  }
}

actor DarkImpBall2 : DoomImpBall
{
  Game Doom
  SpawnID 218
  Speed 40
  Damage 3
  States
  {
  Spawn:
    BAL4 AB 4 Bright
    Loop
  Death:
    BAL4 CDE 6 Bright
    Stop
  }
}
